package com.nuc.edu.user.service;

import com.nuc.edu.project.system.notice.domain.Notice;
import com.nuc.edu.project.system.notice.service.INoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author rrbai
 */
@Service("user_common")
public class IndexService {
    @Autowired
    private INoticeService noticeService;

    /**
     * 首页展示使用，仅查询10条数据
     */
    public List<Notice> notice(){
        return noticeService.selectNoticeListByTime();
    }
}
